package cybercode.carsaleserver.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Values {
    public static String driver;    //驱动标识符
    public static String url; //链接字符串3

    public static String user;         //数据库的用户名

    public static String password;     //数据库的密码

    @Value("${oracle.driver-class-name}")
    public void setDriver(String driver) {
        Values.driver = driver;
    }
    @Value("${oracle.url}")
    public void setUrl(String url) {
        Values.url = url;
    }
    @Value("${oracle.username}")
    public void setUser(String user) {
        Values.user = user;
    }
    @Value("${oracle.password}")
    public void setPassword(String password) {
        Values.password = password;
    }


    public static String TOKEN_KEY_PREFIX = "INFECT:TOKEN:";
}
